import request from '@/utils/request'
//获取博主详情
export function getUpInfo(params) {
  return request.get('/users/detail', { params })
}

//关注博主
export function followUp(data) {
  return request.post('/users/follow', data)
}

//取消关注博主
export function unFollowUp(data) {
  return request.post('/users/unfollow', data)
}

//点赞某个视频
export function likeVideo(data) {
  return request.post('/users/likeVideos', data)
}
//取消点赞某个视频
export function cancelLikeVideo(data) {
  return request.post('/users/unlikeVideos', data)
}

//点赞某个评论
export function likeComment(data) {
  return request.post('/comments/likeComments', data)
}

//取消点赞某个评论
export function cancelLikeComments(data) {
  return request.post('/comments/cancelLikeComments', data)
}

//根据昵称模糊查询用户
export function searchUser(keyword) {
  return request.get('/users/searchNickName', { params: { keyword } })
}
//随机推荐的@用户
export function randomUser(userId) {
  return request.get('/users/random', { params: { userId } })
}

//查询我的关注
export function searchMyFollow(userId) {
  return request.get('/users/queryMyFollow', { params: { userId } })
}

